add_library(module2 STATIC
    module2.cpp
    module2.hpp
)
target_include_directories(module2 PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)
# 声明依赖项（假设依赖driver1）
target_link_libraries(module2 PUBLIC 
    driver2
)